/*
 * Copyright (c) ShaoxiongDu <Shaoxiong.dev@aliyun.com> 2021 all Rights Reserved
 */

package zh.codegym.task.task08.task0823;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/* 
走向全国
*/

public class Solution {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String s = reader.readLine();

        //在此编写你的代码

        String[] arr = s.split("\\s+");
        for (int i = 0; i < arr.length; i++) {

            String current = arr[i];
            if (current == null || current.isEmpty()) {
                continue;
            }
            String first = current.substring(0, 1);
            arr[i] = first.toUpperCase() + current.substring(1);
        }

        System.out.println(String.join(" ", arr));
    }
}
